#include "includes.h"
#include "stdio.h"

#define TASK1_PRIO  1
#define TASK2_PRIO  2

static unsigned int cnt = 0;


static void task1(void){
    printf("task1: %u\n", ++cnt);
    qos_sleep(1);
}


static void task2(void){
    printf("task2: %u\n", ++cnt);
    qos_sleep(2);
}


int main(void){
    qos_init();

    qos_task_create(TASK1_PRIO, task1);
    qos_task_create(TASK2_PRIO, task2);

    qos_start();

    return 0;
}

// no more

